{% extends 'xadmin/base.html' %}
{% load i18n xadmin_tags %}


{% block title %}{{ title }} | {{ site_title }}{% endblock %}

{% block headfix %}{% endblock %}

{% block body %}
<div>


      <section class="content">

      <!-- messages -->
      {% block messages %}
      {% if messages %}
        {% for message in messages %}
        <div class="alert alert-dismissable{% if message.tags %} {% if message.tags == 'error' %}alert-danger{% else %}alert-{{ message.tags }}{% endif %}{% endif %}">
          <button type="button" class="close" data-dismiss="alert">&times;</button>
          {{ message }}
        </div>
        {% endfor %}
      {% endif %}
      {% endblock messages %}

      <div class="box box-solid">
        <div class="box-header" style="padding-bottom:0px;">
      <!-- content nav -->
      {% block content-nav %}
      <div class="row">
          <div class="col-sm-4">
            <div class="box-title">
            {% view_block 'nav_btns' %}
            {% block nav_btns %}{% endblock %}

            {% block nav_middle %}{% endblock %}
            </div>
          </div>


          <div class="col-sm-4">
              <!-- 过滤器 -->
              <div>
                {% view_block 'nav_menu' %}
              </div>
          </div>

          <div class="col-sm-4">
              {% block nav_form %}{% endblock %}
              <!-- 搜索框 -->
              {% view_block 'nav_form' %}
        </div>
      </div>
      {% endblock %}
        </div>

      <div class="box-body">
      <!-- content -->
      {% block content %}
      {{ content }}
      {% endblock %}
      </div>


      </div>

      </section>

</div>
{% endblock body %}
